<?php
/**
 * Created by PhpStorm.
 * User: 魏爷
 * Date: 2016/4/14
 * Time: 22:03
 */
/**加密函数**/
function myMd5($str)
{
    return md5('wyz_bishe'.$str);
}
/**
 * 获取用户ID
 * @return  Integer  User_ID
 **/
function getUserId()
{
    return session('u_id');
}
/**
 * 获取用户姓名
 * @return String u_name
 **/
function getUserName()
{
    $userName=session('userInfo');
    return $userName['u_name'];
}
